package cn.xgj.sfzy.controller;

import cn.xgj.sfzy.service.AccountService;
import cn.xgj.sfzy.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AccountController
 * @Description TODO
 * @Author xgj
 * @Date 2024年10月31日 上午11:34
 * @Version 1.0
 */
@RestController("/account")
public class AccountController {
    @Autowired
    private AccountService accountService;

    @PostMapping("/zz")
    public Result zz(String fusername,String tusername,double money){
        accountService.zz(fusername,tusername,money);
        return Result.success("成功");
    }
}
